package cn.yunyichina.provider.sys.dao;

import cn.yunyichina.provider.sys.entity.Resource;
import org.springframework.stereotype.Repository;
import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;

import java.util.List;
import java.util.Map;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2018-01-26 09:36:36
*/
@Repository
@MyBatisRepository
public interface ResourceDao extends BaseDao<Resource>{

    List<Resource> listResourceByLeaf(String resourceId);

    /**
     * 根据主键集合，按条件返回对应的列表
     * @param map
     * @return
     */
    List<Resource> selectConditionByIds(Map<String,Object> map);
}